import { PictureFolder } from '../../../electron/entities';

/**
 * 底层通讯服务
 *
 * @author chitanda
 * @date 2022-05-19 11:05:53
 * @export
 * @class IPCService
 */
export class IPCService {
  readFolder(path: string): PictureFolder[] {
    return ipcRenderer.sendSync('read-picture-folders', path);
  }
}

export const ipcService = new IPCService();
